-----------------------------------------------------------------------
-- First Gadget from scratch!
--------------------------------

function gadget:GetInfo()             -- does this even work for Gadgets ...?
  return {
    name      = "setupSpawner",
    desc      = "Deploys initial buildings for each player (and neutrals ? - maybe seperate)",
    author    = "Sean Heron",
    date      = "September 3rd, 2009",
    license   = "GNU GPL, v2 or later",
    layer     = 1,
    enabled   = true
  }
end


-------

if (gadgetHandler:IsSyncedCode()) then

--  SYNCED
--------------------------------------------------------------------------------


function gadget:GameFrame(f)     -- is there not a gadget:Start or such, executed just at the beginning ?  -- yes, but apparently that doesn't like units getting built there...
--	Spring.Echo("bla")
	if (f == 0) then 
		Spring.Echo("Starty start!!!!")
		Spring.CreateUnit("landfactory", 7180, 30, 3400, "south",0)
		Spring.CreateUnit("landfactory", 7050, 30, 3350, "north",1)
		Spring.CreateUnit("landfactory", 7180, 30, 3300, "south",2)   --- ah she's Gaia, I guess
--		Spring.CreateUnit("hunchback", 7150, 30, 3350, "north",3)   -- and then these don't exist... but I need to fill up to 6 in every case!
--		Spring.CreateUnit("hunchback", 7080, 30, 3400, "south",4)                                    -- easy enough to do with my nifty skirmish scenario - hmm, maybe that will do for now
--		Spring.CreateUnit("hunchback", 7050, 30, 3450, "north",5)                                                        -- but how to do later ???
	end
end


end